package com.eedi.framework.dept.controller.org.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Schema(description = "经营管理 - 部门创建 Request VO")
@Data
public class OrgDeptSaveReq {

    @Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "永聚长青")
    @NotBlank(message = "部门名称不能为空")
    @Size(max = 30, message = "部门名称长度不能超过 30 个字符")
    private String orgDeptName;

    @Schema(description = "部门编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "miaoren")
    @NotBlank(message = "部门编码不能为空")
    @Size(max = 30, message = "部门名称长度不能超过 30 个字符")
    private String orgDeptCode;

    @Schema(description = "父部门 ID", example = "1024")
    private String parentOrgDeptId;

    @Schema(description = "显示顺序不能为空", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "显示顺序不能为空")
    private Integer orgDeptSort;

    @Schema(description = "负责人的用户编号", example = "2048")
    private String leaderUserId;

}
